﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EasyFMS.Common
{
    /// <summary>
    /// 用于omgrid的排序
    /// </summary>
     public class PageSort
    {
        public string SortType { get; set; }
        public string Field { get; set; }

        public PageSort(string field, string sortType = "asc")
        {
            Field = field;
            SortType = sortType;
        }

        public string Expression
        {
            get
            {
                return string.Format(" {0} {1} ", Field, SortType);
            }
        }
    }
}
